// Licensed to Elasticsearch B.V under one or more agreements.
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information.
//
// ███╗   ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
// ████╗  ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
// ██╔██╗ ██║██║   ██║   ██║   ██║██║     █████╗
// ██║╚██╗██║██║   ██║   ██║   ██║██║     ██╔══╝
// ██║ ╚████║╚██████╔╝   ██║   ██║╚██████╗███████╗
// ╚═╝  ╚═══╝ ╚═════╝    ╚═╝   ╚═╝ ╚═════╝╚══════╝
// ------------------------------------------------
//
// This file is automatically generated.
// Please do not edit these files manually.
//
// ------------------------------------------------

#nullable restore

using Elastic.Clients.Elasticsearch.Fluent;
using Elastic.Clients.Elasticsearch.Serialization;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Text.Json;
using System.Text.Json.Serialization;

namespace Elastic.Clients.Elasticsearch.IndexManagement;

public sealed partial class DataStreamLifecycleExplain
{
	[JsonInclude, JsonPropertyName("error")]
	public string? Error { get; init; }
	[JsonInclude, JsonPropertyName("generation_time")]
	public Elastic.Clients.Elasticsearch.Duration? GenerationTime { get; init; }
	[JsonInclude, JsonPropertyName("index")]
	public string Index { get; init; }
	[JsonInclude, JsonPropertyName("index_creation_date_millis")]
	public long? IndexCreationDateMillis { get; init; }
	[JsonInclude, JsonPropertyName("lifecycle")]
	public Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleWithRollover? Lifecycle { get; init; }
	[JsonInclude, JsonPropertyName("managed_by_lifecycle")]
	public bool ManagedByLifecycle { get; init; }
	[JsonInclude, JsonPropertyName("rollover_date_millis")]
	public long? RolloverDateMillis { get; init; }
	[JsonInclude, JsonPropertyName("time_since_index_creation")]
	public Elastic.Clients.Elasticsearch.Duration? TimeSinceIndexCreation { get; init; }
	[JsonInclude, JsonPropertyName("time_since_rollover")]
	public Elastic.Clients.Elasticsearch.Duration? TimeSinceRollover { get; init; }
}